package javango.contrib.compat;

import java.util.ArrayList;
import java.util.List;

import com.google.inject.Injector;
import com.google.inject.Module;

import javango.api.BaseSettings;
import javango.contrib.compat.Static;
import javango.contrib.hibernate.HibernateModule;

public abstract class Settings extends BaseSettings {

	@Override
	public Injector createInjector(List<Module> moduleList) {
		if (moduleList == null) {
			moduleList = new ArrayList<Module>();
		}
		
		moduleList.add(new HibernateModule());
		
		Static.init(this, super.createInjector(moduleList));
		return Static.getInjector();
	}

}
